package com.shrct.businessprocess.project;

import com.shrct.businessprocess.project.RCProjectActStatCriteriaData;
import edu.fudan.mylang.pf.query.BaseStatCriteria;
import java.util.Collection;

public class RCProjectActStatCriteria extends BaseStatCriteria<RCProjectActStatCriteriaData> {
  public void initOrderBys() {
    
  }
  
  public Collection<RCProjectActStatCriteriaData> list() {
    criteria.postInitialize();
    initOrderBys();
    String aggrCriteria = " select new com.shrct.businessprocess.project.RCProjectActStatCriteriaData(sum(this.stat.summaryInfo.contractAmount),sum(this.stat.summaryInfo.invoiceAmount),sum(this.stat.summaryInfo.incomeAmount),sum(this.stat.summaryInfo.acceptAmount),sum(this.stat.summaryInfo.invoiceTax),sum(this.stat.summaryInfo.purchaseTax),sum(this.stat.summaryInfo.totalCostWithoutTax),sum(this.stat.summaryInfo.totalCost),sum(this.stat.summaryInfo.actualCost),sum(this.stat.summaryInfo.contractProfit),sum(this.stat.summaryInfo.contractProfitAdj4Sale),sum(this.stat.summaryInfo.ggp),sum(this.stat.summaryInfo.cggp))"
    		+ criteria.getHQLFrom() + " " + criteria.getHQLBodyWithActiveCondition();
    org.hibernate.Query query = entities.createQuery(aggrCriteria);
    criteria.fillParameters(query);
    return doList(query);
    
  }
}
